home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++
- Subject: Re: C/C++ knocks the crap out of Ada
- Date: 15 Mar 1996 20:00:08 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4idec8INNm22@keats.ugrad.cs.ubc.ca>
- References: <00001a73+00002504@msn.com> <4iah20$p7k@saba.info.ucla.edu> <4ictel$18v@tpd.dsccc.com> <4id4cc$1rau@saba.info.ucla.edu>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <4id4cc$1rau@saba.info.ucla.edu>,
- Jay Martin <jmartin@cs.ucla.edu> wrote:
- >kcline@sun132.spd.dsccc.com (Kevin Cline) writes:
- >
- >>Maybe, but I personally find it much easier to maintain lex & yacc
- >>grammers which make the file syntax explicit, instead of trying to
- >>divine the syntax from scanf statements scattered throughout a dozen
- >>subroutines.
- >
- >If you have to parse something, fine use lex and yacc. If it is
- >simple I prefer to use simple IO statements of the language. Parsing
-
- Which is what the parser does. The difference is that the parser generator
- writes the program for you. Clue in!
-
- >is really only needed when there are nested structures in the text.
-
- Not necessarily. You don't need recursion to build a grammar that is tricky to
- deal with.
-
- >As a user, I do not want to read a grammer for a text file format.
-
- All text file formats that you come up with via hard-coded programming will
- have a grammar, whether you like it or not.
-
- >As a programmer annotated grammers do not do much for me either.
-
- This may be your personal experience. Other people find grammars to be useful.
-
- >>The scanf programmers tend to define their input file syntax to make
- >>it easy to parse, rather than easy to read, and then resist all
- >>suggestions to extend the syntax for user convenience.
- >
- >I personally do not find complex text file formats as an exceptable
- >user friendly method of input in this day and age. Users should look
- >at GUI's not goofy text files. Thus, slight differences in the
-
- You are flipping the subject.
-
- >flexiblity of file formats is really of little concern these days as
- >no one should be really looking at them. Besides grammer style legacy
- >text file formats I see little use for parsing besides writing your
- >own C++ or Ada95 or other language compiler ( or pretty printer, etc).
- >Something I am not planning to do anytime soon. So has GUI's and huge
- >languages really ruined the usefulness of parsing, or am I forgetting
- >some important uses of parsers.
-
- What do GUI's have to do with the thread you started? I thought it was about
- hand-coding scanners and parsers versus having it done for you from an
- abstract spec.
-
- Huge languages have to be translated somehow. (What huge languages are we
- talking about? How do ``huge languages'' eliminate the usefulness of parsing?)
-
- Look at the Macintosh; if you want to automate tasks, you have to do some
- meta-programming using something called Applescript. Looks like text!
-
- I think this sort of discussion is very off-topic for comp.lang.*.
- --
-
-